Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

418
Visualizações
apache "Access forbidden! Error 403" when creating alias to a directory in home

I'm new to apache. I'm trying to create an alias to my project folder which is in home/Documents/Projects/blog directory.

I added this to httpd configs:

Alias /blog "/home/ehsan/Documents/Projects/blog/ui/dist"   
<Directory "/home/ehsan/Documents/Projects/blog/ui/dist">
    DirectoryIndex index.html
    AllowOverride All
    Options FollowSymlinks
    Require all granted
</Directory>

I did this also:

sudo chmod -R 775 /home/ehsan/Documents/Projects/leitner/ui/dist

but I get "403 Access forbidden!" error.

I did the same thing for phpmyadmin and it works.

I read somewhere that apache should have access to all the higher level directories. is that true?

apache version: 2.4.41 (Unix)

os: manjaro 18

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I think you can make apache the owner of the folder which it's gonna make changes in it. Try this: head to your project directory as below

cd /home/ehsan/Documents/Projects/leitner

and then :

chown -R www-data:www-data ui/

if there was any error going on, send the log of apache here would be helpful

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda